<?php
/**
 * Created by PhpStorm.
 * User: Silent
 * Date: 2018/9/1
 * Time: 13:57
 */

if(empty($_POST['msg']))exit();
require __DIR__ . '/fun.php';//数据处理类
$msg = $_POST['msg'];

//1消息回复确认
//2消息发送
switch ($msg){
    case 1:
        sure($_POST["conid"]);
        break;
    case 2:
        //谁  要发给  谁  内容是什么
        creat($_POST["fa_id"],$_POST["shou_id"],$_POST["conten"]);
        break;
    case 3:
        break;
    default:
        break;
}
